package com.hnrd.crud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.hnrd.crud.pojo.Permission;
import com.hnrd.crud.pojo.RolePermission;
@Service
public interface RolePermissionMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(RolePermission record);

    RolePermission selectByPrimaryKey(Integer id);

    List<RolePermission> selectAll();

    int updateByPrimaryKey(RolePermission record);

	Integer addRolePermissions(@Param("list") List<RolePermission> rolePermissions);

	List<Permission> selectRolePermissions(Integer roleId);
}